package entity;

import javax.persistence.*;

/**
 * Created by zhongwei on 2017/6/10.
 */
@Entity
@Table(name = "article")
public class Article {
    private Long id;
    private String title;
    private String link;
    private String summary;
    private String authors;
    private Integer pubYear;
    private String pubVenue;
    private String citationLink;
    private Integer citationCount;
    private Integer done;
    private String fromTask;
    private String pdfLink;
    private String keyPhrases;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(length = 2048)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    @Column(length = 1024 * 1024)
    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    @Column(length = 2048)
    public String getAuthors() {
        return authors;
    }

    public void setAuthors(String authors) {
        this.authors = authors;
    }

    public String getCitationLink() {
        return citationLink;
    }

    public void setCitationLink(String citationLink) {
        this.citationLink = citationLink;
    }

    public Integer getCitationCount() {
        return citationCount;
    }

    public void setCitationCount(Integer citationCount) {
        this.citationCount = citationCount;
    }

    public String getPubVenue() {
        return pubVenue;
    }

    public void setPubVenue(String pubVenue) {
        this.pubVenue = pubVenue;
    }

    public Integer getDone() {
        return done;
    }

    public void setDone(Integer done) {
        this.done = done;
    }

    public String getFromTask() {
        return fromTask;
    }

    public void setFromTask(String fromTask) {
        this.fromTask = fromTask;
    }

    public String getPdfLink() {
        return pdfLink;
    }

    public void setPdfLink(String pdfLink) {
        this.pdfLink = pdfLink;
    }

    public Integer getPubYear() {
        return pubYear;
    }

    public void setPubYear(Integer pubYear) {
        this.pubYear = pubYear;
    }

    @Column(length = 10240)
    public String getKeyPhrases() {
        return keyPhrases;
    }

    public void setKeyPhrases(String keyPhrases) {
        this.keyPhrases = keyPhrases;
    }
}
